<?Lassoscript
// Last modified 11/30/09 by Eric Landmann

// FUNCTIONALITY
// User search form

// CHANGE NOTES
// 4/17/09
// Version 1.0
// 11/30/09
// Got admin working better.

// Debugging
// Var:'svDebug' = 'Y';

// Converting action_params
Var:'vError'=(Action_Param:'Error');
Var:'vFirst_Name'=(Action_Param:'First_Name');
Var:'vLast_Name'=(Action_Param:'Last_Name');
Var:'vPost_Name'=(Action_Param:'Post_Name');
Var:'vMail'=(Action_Param:'Mail');

?><form action="setup_searchresults.lasso" method="post">
	<div align="center">
		<table width="491">
			<tr>
				<td colspan="2">
					<h2>Search for Users</h2> 
<?Lassoscript
// Standard Error Table
If: (Var:'vError') != '';
	LI_ShowError3: -ErrNum=$vError, -Option=$vOption;
/If;
?>
				</td>
			</tr>
			<tr> 
				<td width="150" bgcolor="[Var:'svSearchContentColor']" valign="middle">
					<div align="right"><strong>First Name</strong></div>
				</td>
				<td valign="middle" bgcolor="[Var:'svPostContentColor']" align="left"> 
					<input type="text" name="First_Name" value="[Var:'vFirst_Name']" size="15">
				</td>
			</tr>
			<tr> 
				<td width="150" bgcolor="[Var:'svSearchContentColor']" valign="middle">
					<div align="right"><strong>Last Name</strong></div>
				</td>
				<td valign="middle" bgcolor="[Var:'svPostContentColor']" align="left">
					<input type="text" name="Last_Name" value="[Var:'vLast_Name']" size="20">
				</td>
			</tr>
			<tr> 
				<td width="150" bgcolor="[Var:'svSearchContentColor']" valign="middle">
					<div align="right"><strong>Post Name</strong></div>
				</td>
				<td valign="middle" bgcolor="[Var:'svPostContentColor']" align="left">
					<input type="text" name="Post_Name" value="[Var:'vPost_Name']" size="18" maxlength="24">
				</td>
			</tr>
			<tr> 
				<td width="150" bgcolor="[Var:'svSearchContentColor']" valign="middle">
					<div align="right"><strong>E-mail</strong></div>
				</td>
				<td valign="middle" bgcolor="[Var:'svPostContentColor']" align="left">
					<input type="text" name="Mail" value="[Var:'vMail']" size="30" maxlength="128">
				</td>
			</tr>

			<tr> 
				<td colspan="2" bgcolor="[Var:'svSearchContentColor']">
					<div align="center">
						<input type="hidden" name="New" value="Y">
						<input type="hidden" name="Datatype" value="User">
						<input type="submit" name="-Nothing" value="Search">
					</div>
				</td>
			</tr>
		</table>
	</div>
</form>
